package com.itheima.springbootmybatis.mapper;

import com.itheima.springbootmybatis.domain.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface StudentMapper {
    /*    @Select("select * from student")*/
    public List<Student> findAll();

    void add(Student stu);

    void update(Student stu);

    void delete(Integer id);
}